﻿--[[
   @brief    desc for webgame mainframe tools_panel
   @author   hqzheng
   @version  1.0
   @date     2017-4-12
--]]

tools_panel_desc =
{
    module_name = "tools_panel",
    events = 
    {
        {
            reg_service = 
            {
                {
                    id = "i_svr_show_tools_panel",
                    callback = "tools_panel.show"
                },
                {
                    id = "i_svr_show_download_mgr",
                    callback = "download_mgr_control.show"
                },
            },
            listen_broadcast = 
            {
                {
                    id = 'i_broadcast_jump_game_sub_page',
                    callback = "self_menu.jump_game_sub_page"
                },
                {
                    id = 'Msg_DownloadMgrTaskFininshed',
                    callback = "tools_panel.show_download_mgr_notify_reddot"
                },
                {
                    id = 'Msg_DownloadMgrCleanRedDot',
                    callback = "tools_panel.clear_download_mgr_notify_reddot"
                },
                {
                    id = 'Msg_DownloadMgrModeChange',
                    callback = "tools_panel.on_download_mgr_mode_change"
                },
                {
                    id = 'i_brdcst_self_info_update',
                    callback = "tools_panel.on_handle_self_info_update"
                },
                --[[{
                    id = 'Msg_ShowGameDownloadMgr',
                    callback = "download_mgr_view:on_navigate_ok"
                },
                {
                    id = 'Msg_ShowGameDownloadMgr',
                    callback = "download_mgr_view:on_navigate_ok"
                },--]]
            },
            lua_file = "mainframe_tools_panel\\tools_panel.lua"
        },
    }
};

desc_mgr.add(tools_panel_desc);
ierd_tgp.tpf_ui.Require("mainframe_tools_panel\\tools_panel.lua");